/* 天气与地理服务页面样式 */

/* 地理位置 */
.location {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--dark-color);
  }
  
  .location i {
    color: var(--primary-color);
    margin-right: 8px;
  }
  
  .refresh-btn {
    background: transparent;
    color: var(--primary-color);
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .refresh-btn:hover {
    background: rgba(0, 119, 204, 0.1);
  }
  
  /* 天气卡片 */
  .weather-card {
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    background-color: white;
    overflow: hidden;
  }
  
  .weather-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  
  .weather-main-left {
    display: flex;
    align-items: center;
  }
  
  .weather-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-right: 20px;
  }
  
  .weather-temp {
    display: flex;
    flex-direction: column;
  }
  
  .temp-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
  }
  
  .temp-unit {
    font-size: 1.2rem;
    opacity: 0.7;
  }
  
  .weather-desc {
    font-size: 1.2rem;
    margin-top: 8px;
  }
  
  .weather-main-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }
  
  .weather-day {
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  .weather-date {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
  }
  
  /* 天气详情 */
  .weather-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
  }
  
  .detail-item {
    flex: 1;
    min-width: calc(50% - 16px);
    display: flex;
    align-items: center;
  }
  
  .detail-item i {
    width: 30px;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
  }
  
  .detail-info {
    display: flex;
    flex-direction: column;
  }
  
  .detail-label {
    font-size: 0.9rem;
    color: #666;
  }
  
  .detail-value {
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  /* 光照强度 */
  .light-intensity {
    margin-top: 20px;
  }
  
  .intensity-meter {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 16px 0;
    overflow: hidden;
  }
  
  .meter-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
  }
  
  .intensity-info {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  /* 天气预报 */
  .forecast-title {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--primary-color);
  }
  
  .forecast-list {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
  }
  
  .forecast-item {
    min-width: 100px;
    padding: 16px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .forecast-day {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
  }
  
  .forecast-icon {
    font-size: 1.8rem;
    margin: 10px 0;
    color: var(--primary-color);
  }
  
  .forecast-temp {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .forecast-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
    text-align: center;
  }

  /* 暗色模式样式 */
  .dark-mode .weather-card {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }

  .dark-mode .detail-label {
    color: #aaa;
  }

  .dark-mode .forecast-item {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }

  .dark-mode .forecast-desc {
    color: #aaa;
  }

  .dark-mode .intensity-meter {
    background-color: #333;
  }